package com.ruoyi.warehouse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 药库操作对象 drug_warehouse_operate
 * 
 * @author ruoyi
 * @date 2025-08-22
 */

public class DrugWarehouseOperate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作也有ID */
    private Long operateId;

    /** 药库ID */
    @Excel(name = "药库ID")
    private Long warehouseId;

    /** 药品ID */
    @Excel(name = "药品ID")
    private Long drugId;

    /** 操作类型（1=进货，2=出库） */
    @Excel(name = "操作类型", readConverterExp = "1==进货，2=出库")
    private Integer operateType;

    /** 操作数量（进货为正，出库为负） */
    @Excel(name = "操作数量", readConverterExp = "进=货为正，出库为负")
    private Long quantity;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    public void setOperateId(Long operateId) 
    {
        this.operateId = operateId;
    }

    public Long getOperateId() 
    {
        return operateId;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }

    public void setOperateType(Integer operateType) 
    {
        this.operateType = operateType;
    }

    public Integer getOperateType() 
    {
        return operateType;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("operateId", getOperateId())
            .append("warehouseId", getWarehouseId())
            .append("drugId", getDrugId())
            .append("operateType", getOperateType())
            .append("quantity", getQuantity())
            .append("operateTime", getOperateTime())
            .append("remark", getRemark())
            .toString();
    }
}
